package com.lovo.bbs.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
  
	/**
	 * 取得当前系统日期与时间(Date and Time)
	 */
	public static String getDateTime(){
		Date dateTime = new Date();
		SimpleDateFormat matter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return matter.format(dateTime);
	}
	

	/**
	 * 取得当前系统时间(Time)
	 */
	public static String getTime(){
		Date time = new Date();
		SimpleDateFormat matter = new SimpleDateFormat("HH:mm:ss");
		return matter.format(time);
	}
}
